home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Interfaces / TelOther601.h < prev   
Encoding:
C/C++ Source or Header  |  1995-07-18  |  3.1 KB  |  98 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        TelOther601.h
  3.  
  4.      Contains:    Interface to GeoPort Telephone Tool
  5.  
  6.        Version:    Technology:    System 7.5
  7.                  Package:    Telephone Manager on Mac OS SDK #4
  8.  
  9.      Copyright:    Â© 1994-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.     
  18.     Header file for the TelOtherFunction call that can be used to identify the
  19.     hardware being used by the GeoPort Telephone Tool.
  20.     
  21.     If you call  TelOtherFunction on the GeoPortâ„¢ Telephone Tool
  22.     with the first short of the parameter blaock set to 0x601, the 
  23.     tool will fill your parameter block with information on the
  24.     harware device that is currently being used by the tool.
  25.     
  26.     The use that is envisioned for this call, is to provide more
  27.     information for tech support in the future when more variants
  28.     of the GeoPort Telecom Adapter exist.
  29.     
  30.     Other Telephone Tool vendors may also implement this TelOtherFunction
  31.     call for the same purpose.  The next time we revise the Telephone Manager
  32.     interface we will add this functionality as a standard API and data
  33.     structure.
  34.     
  35. */
  36.  
  37. #define kTELOtherToolDeviceInfo 601
  38.  
  39. const unsigned char *kAppleToolManufacturerName= "\pApple Computer, Inc.";
  40. const unsigned char *kGTAK01DeviceName= "\pGeoPort Telecom Adapter";
  41.  
  42. /****************************************************************/
  43. /*            Country codes.                                        */
  44. /****************************************************************/
  45.  
  46. #define    CCInternational     0
  47. #define    CCSweden            1
  48. #define    CCSwitzerland        2
  49. #define    CCUnitedKingdom        3
  50. #define    CCUnitedStates        4
  51. #define    CCFinland            5
  52. #define    CCAustralia            6
  53. #define    CCAustria            7
  54. #define    CCBelgium            8
  55. #define    CCCanada            9
  56. #define    CCDenmark            10
  57. #define    CCFrance            11
  58. #define    CCGermany            12
  59. #define    CCHolland            13
  60. #define    CCIreland            14
  61. #define    CCItaly                15
  62. #define    CCJapan                16
  63. #define    CCLuxembourg        17
  64. #define    CCNorway            18
  65. #define    CCSpain                19
  66. #define    CCNewZealand        20
  67. #define    CCHongKong            21
  68. #define    CCSingapore            22
  69. #define    CCTaiwan            23
  70. #define    CCKorea                24
  71. #define    CCMalaysia            25
  72. #define    CCBulgaria            26
  73. #define    CCCzechRepublic        27
  74. #define    CCSlovakia            28
  75.  
  76. #if defined(powerc) || defined(__powerc)
  77. #pragma options align=mac68k
  78. #endif
  79. struct TELToolDeviceInfoRecord {
  80.   short csCode;     // Code 601 for hardware device identification
  81.   short         structVersion;       // "$0001" for this version of the data structure.
  82.   OSType       toolManufacturer;     // "Appl" for Apple, "Cypr" for Cypress
  83.   OSType       toolDeviceType;
  84.   short           deviceVersionNumber;  // "$0001"
  85.   short           CountryCode;             // We always return zero now.
  86.   Str31        toolManufacturerName; // "Apple Computer, Inc."
  87.   Str31        toolDeviceName;       // "GeoPort Telephone Adapter" 
  88. };
  89. #if defined(powerc) || defined(__powerc)
  90. #pragma options align=reset
  91. #endif
  92.  
  93.  
  94. typedef struct TELToolDeviceInfoRecord TELToolDeviceInfoRecord;
  95. typedef TELToolDeviceInfoRecord *TELToolDeviceInfoPtr, **TELToolDeviceInfoHandle;
  96.  
  97.  
  98.